/* 在PC端优先的情况下 */
body {
    width: 100%;
    color: #333;
    background-color: #fcfcfc;
}

/* 重置页面中所有a的样式 */
a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #81ccff;
}

/* 重置页面中所有img的样式 */
img {
    vertical-align: bottom;
}

.mobile{
    display: none;
}

/* 最外层的容器 */
.top-bar-wrapper {
    width: 100%;
    background-color: #fefefe;
    box-shadow: 0 5px 5px rgba(0, 0, 0, .1);
    z-index: 2;
}

/* 主体部分容器 */
.top-bar {
    width: 90%;
    margin: 0 auto;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 主菜单部分 */
.left-menu {
    /*设置弹性元素的弹性盒中布局的顺序*/
    flex: auto;
}

/* 在PC端，menu-icon是隐藏的 */
.menu-icon {
    display: none;
}

/* 将nav设置为弹性盒 */
.nav {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
}

.nav a {
    display: block;
    line-height: 48px;
}

/* 网页标题部分，由于没有将图片和文字合成一个统一的logo图片，所以要各自设置样式 */
.logo a {
    display: block;
    height: 48px;
    font-size: 12px;
    color: #81ccff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: "KaiTi";
}

.logo a:hover {
    color: #81ccff;
}

.logo img {
    width: 16px;
    height: 16px;
    margin-bottom: 6px;
}

/* 用户信息栏 */
.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.main-wrapper {
    display: inline-flex;
    width: 100%;
}

aside {
    width: 9%;
    background-color: #fcfcfc;
    text-align: center;
    padding: 1% 3%;
    margin-top: 10px;
}

.aside-title{
    font-weight: 700;
    border-bottom: 1px solid #d7d7d7;
    line-height: 80px;
}

aside div{
    height: 80px;
}

aside a{
    display: block;
    color: #8e798e;
    line-height: 80px;
}

aside a:active {
    color: #85d6ff;
}

.edition p{
    font-size: 12px;
    color: #ada8ad;
    line-height: 80px;
}

.pc-main {
    width: 75%;
    min-height: 60vh;
    margin-top: 10px;
    background-color: white;
    padding: 5%;
}

h2{
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 5px;
}

.pc-main p{
    line-height: 2rem;
    word-break: break-word;
}

.pc-main img{
    width: 70%;
}


/* 设置媒体查询 */
@media only screen {
    /* 断点 768px */
    @media (max-width: 767px) {
        *{
            margin:0;
            padding: 0;
            background-color: white;
        }

        .pc {
            display: none;
        }

        .mobile {
            display: block;
        }

        body{
            font-size: 16px;
        }

        header {
            height: 60px;
            width: 100vw;
            background-color: #85d6ff;
            color: white;
            line-height: 60px;
            text-align: center;
        }

        header p{
            background-color: #85d6ff;
            font-size: 1.2rem;
        }

        .mobile-main{
            position: absolute;
            top:80px;
            width: 90vw;
            margin-left: 5vw;
            margin-right: 5vw;
        }

        .mobile-main div{
            width: 100%;
        }

        .mobile-main p{
            line-height: 1.5rem;
            word-break: break-word;
        }

        .mobile-main img{
            width: 100%;
        }

        header img{
            position: absolute;
            top:15px;
            left: 1vh;
            width: 30px;
            height: 30px;
            background-color: #85d6ff;
        }
    }

}